package org.fireflow2.designer.eclipse.actions;

import org.eclipse.gef.ui.actions.ActionBarContributor;
import org.eclipse.gef.ui.actions.DeleteRetargetAction;
import org.eclipse.gef.ui.actions.RedoRetargetAction;
import org.eclipse.gef.ui.actions.UndoRetargetAction;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.ui.IWorkbenchActionConstants;
import org.eclipse.ui.actions.ActionFactory;

public class FireflowMultiPageEditorContributor extends ActionBarContributor  {

	@Override
	protected void buildActions() {
        addRetargetAction(new UndoRetargetAction());
        addRetargetAction(new RedoRetargetAction());
        DeleteRetargetAction deleteRetargetAction = new DeleteRetargetAction();
        addRetargetAction(deleteRetargetAction);
	}

	@Override
	protected void declareGlobalActionKeys() {
//        addGlobalActionKey(IWorkbenchActionConstants.PRINT);
//		addGlobalActionKey(IWorkbenchActionConstants.SAVE);
	}
	
	public void contributeToToolBar(IToolBarManager toolBarManager) {
		toolBarManager.add(getAction(ActionFactory.UNDO.getId()));
		toolBarManager.add(getAction(ActionFactory.REDO.getId()));
		toolBarManager.add(getAction(ActionFactory.DELETE.getId()));
	}


}
